﻿using PmSoft;

namespace Modules.Person
{
    public static class PersonExtensions
    {
        public static string GetBankName(this PersonBank personBank)
        {
            var personBankService = ServiceAccessor.GetService<PersonBankService>();
            var data = personBankService.GetPersonBank(personBank.Id);
            if (data == null)
                return "";
            return data.CardNo + "(" + data.BankName + ")";
        }
    }
}